package com.dsbj.icardservice.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.dsbj.common.model.ReservationPrimary;
import com.dsbj.icardservice.entity.Reservation;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface ReservationMapper extends BaseMapper<Reservation> {

    @Select("select * from VS_RESERVATION where id=#{id}")
    Reservation getById(@Param("id") String id);

    Reservation getByIdXml(@Param("id") String id);

    Reservation getByIdWrapper(@Param(Constants.WRAPPER) Wrapper<Reservation> userWrapper);

}
